<template>
  <el-container>
    <el-aside width="200px">
      <SideMenu></SideMenu>
    </el-aside>
    <el-container>
      <el-header>
        <strong>泽浩管理软件系统</strong>

        <!-- <div class="header-avatar">
          <el-button plain @click.native="logout">退出</el-button>
        </div> -->
      </el-header>

      <el-main>
        <div style="margin: 0 30px">
          <router-view />
        </div>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import SideMenu from "../components/SideMenu";

export default {
  name: "Home",
  components: {
    SideMenu,
  },
  data() {
    return {};
  },
  computed: {
    // userInfo: function () {
    //   return this.$store.state.user;
    // },
  },
  methods: {
    // logout() {
    //   this.$axios.post("/logout").then(() => {
    //     window.sessionStorage.clear();
    //     this.$store.commit("RESET_STATE");
    //     this.$router.push("/login");
    //   });
    // },
  },
};
</script>

<style scoped>
.el-container {
  padding: 0;
  margin: 0;
  height: 100%;
}

.header-avatar {
  float: right;
  width: 210px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.el-dropdown-link {
  cursor: pointer;
}

.el-header {
  background-color: #66b1ff;
  color: #fff;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  line-height: 200px;
}

.el-main {
  color: #333;
  padding: 20px;
}

a {
  text-decoration: none;
}
</style>